using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.Design;

namespace ClassLib.UserControl.PopupTree
{
    public class ItemCollectionEditor : CollectionEditor
    {
        public ItemCollectionEditor(Type type) : base(type) { }

        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            object returnObject = base.EditValue(context, provider, value);
            return returnObject;
        }

        protected override object CreateInstance(Type itemType)
        {
            Item item = new Item(string.Empty, string.Empty, string.Empty);
            return item;
        }
    }
}